package com.dashu.authority.servie;

import java.util.List;
import java.util.Map;

import com.dashu.authority.entity.User;
import com.dashu.authority.exception.AuthorityException;

public interface UserService extends BaseService<User> {
	public List<User> queryAllByExample(User entity,int pageNum, int pageSize) throws AuthorityException;		
	public Map<String, Object> insertEntity(User entity)throws AuthorityException;	
	public Map<String, Object> updateEntity(User entity)throws AuthorityException;	
	public Map<String, Object> deleteByIds(Integer[] ids) throws AuthorityException;
	public Map<String, Object> updateStatus(Integer[] ids,String status) throws AuthorityException;
	public User checkUserAndPassowrd(String loginId,String password)throws AuthorityException;
	public User findAccountWithUserName(String loginId)throws AuthorityException;
	public List<User> queryAllByRoleId(Integer roleId, int pageNum, int pageSize)throws AuthorityException;
	public User findUserById(Integer id)throws AuthorityException;
}
